import request from "@/utiles/request.js";

/**
 * @description 查看是否已经生成
 */
export const getExistSubjectOne = (data) => {
  return request({
    url: "/1/getExistSubjectOne",
    data,
    method: "get",
  });
};

/**
 * @description 清除历史数据
 */
export const clearHistoryData = (data) => {
  return request({
    url: "/1/clear",
    data,
    method: "post",
  });
};

/**
 * @description 确认线路提交
 */
export const commitLineData = (data) => {
  return request({
    url: "/1/commitLine",
    data,
    method: "post",
  });
};

/**
 * @description 获取信息总览
 */
export const getSubjectTimeAndLineInfo = (data) => {
  return request({
    url: "/1/getSubjectTimeAndLineInfo",
    data,
    method: "get",
  });
};

/**
 * @description 获取单个科目时间
 */

export const getSubjectTime = (data) => {
  return request({
    url: "/1/getSubjectTime?subjectIndex=" + data,
    data,
    method: "get",
  });
};
